package cn.wen233.basic.http;

/**
 * Rest 状态
 *
 * @author wenei
 * @date 2021-10-11 10:02
 */
public enum RestStatus {

    /**
     * 执行成功
     */
    SUCCESS(200, "执行成功"),

    /**
     * 执行失败
     */
    FAILURE(204, "执行失败");

    private final Integer code;

    private final String message;

    RestStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
